package com.dbritos.labusers.dao;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface GenericDao <T, PK extends Serializable> {

    public List<T> getAll();

    public List<T> getAllDistinct();

    public T get(PK id);

    public boolean exists(PK id);

    public T save(T object);

    public void remove(PK id);

    public List<T> findByNamedQuery(String queryName, Map<String, Object> queryParams);
	
}
